@charset 'utf-8';

* {
  margin: 0;
  padding: 0;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system-font, Helvetica, Arial, Verdana, sans-serif;
  font-size: 15px;
  background: #383f42;
  color: #f0f0f0;
}

#main {
  position: relative;
}

#info {
  margin: 1ex auto 1ex auto;
  text-align: center;
  display: block;
}

#game-number {
  display: inline-block;
  font-style: italic;
}

  #game-number:before {
    content: 'Spiel #';
  }

#moves {
  display: inline-block;
  min-width: 66px;
  font-style: italic;
}

  #moves:before {
    content: 'Züge: ';
  }

#controls {
  margin: 0 auto;
  text-align: center;
  display: block;
}

#solution {
  position: absolute;
  top: 2px;
  left: 5px;
  border-collapse: collapse;
  background-color: rgba(47, 50, 51, 0.6);
  box-shadow: rgba(47, 50, 51, 0.6) 0px 0px 6px;
  display: none;
  cursor: default;
}

  #solution td {
    text-align: center;
    border: 1px solid #111;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    font-size: 11px;
  }

  #solution td.steps {
    background-color: rgb(78, 84, 86);
  }

#puzzle {
  margin: 10px auto;
  background-color: #2f3233;
  box-shadow: #2f3233 0px 0px 6px;
  position: relative;
  width: 411px;
  height: 582px;
}

.cell {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -moz-perspective: 300px;
  -ms-perspective: 300px;
  -webkit-perspective: 300px;
  perspective: 300px;
  -moz-perspective-origin: 50% 50%;
  -ms-perspective-origin: 50% 50%;
  -webkit-perspective-origin: 50% 50%;
  perspective-origin: 50% 50%;
  position: absolute;
  cursor: pointer;
  display: inline-block;
}

.three-d {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  -moz-backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background-repeat: no-repeat;
  cursor: pointer;
}

button {
  border: 1px solid #1b1d1e;
  background-color: #bfd2db;
  cursor: pointer;
  padding: 0 0.5em;
  font-family: -apple-system-font, Helvetica, Arial, Verdana, sans-serif;
  font-size: 14px;
  height: 44px;
  min-width: 44px;
}

  button:hover {
    background-color: #cfd9de;
  }

  button:active {
    background-color: #e4e9eb;
  }

  button:disabled {
    cursor: not-allowed;
  }

select {
  font-family: -apple-system-font, Helvetica, Arial, Verdana, sans-serif;
  font-size: 14px;
  height: 44px;
  display: inline-block;
  background-color: #bfd2db;
  vertical-align: bottom;
  cursor: pointer;
}

footer {
  position: relative;
  margin: 0 auto;
  text-align: center;
  padding: 0.5ex 1em;
  font-size: smaller;
  max-width: 411px;
}

a {
  color: #f8f8f8;
  text-decoration: none;
  font-weight: bold;
}

  a:hover {
    text-decoration: underline;
  }

dl {
  padding-top: 1ex;
  padding-bottom: 2ex;
}

dt {
  font-weight: bold;
}

dd {
  padding-left: 1em;
}

.loader {
  background-image: url('');
  background-repeat: no-repeat;
  display: inline-block;
  width: 31px;
  height: 31px;
  margin: 0 auto;
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
}

@media screen and (max-width: 480px) {
  html, body {
    font-size: 13px;
  }

  #puzzle {
    width: 274px;
    height: 388px;
  }

  footer {
    max-width: 274px;
  }

  #solution td {
    font-size: 8px;
  }
}
